/** 视频摄像机设置 */
import { Get, PostForm, PostJson } from './request';
export interface ICameraAreaSetting {
    areaId: number,
    collisionFlag: number,
    createId: 1,
    createTime: string,
    id: number,
    liftingFlag: 0 | 1,
    pedestrianFlag: 0 | 1,
    protocolType: number,
    status: number,
    syncFlag: number,
    updateTime: string
}
/** 获取区域视频摄像机配置信息
 * areaId
 */
export const getCameraSettingByArea = (params: any) => Get('/camerasetting/getByArea', params)

/** 获取视频摄像机配置信息 */
export const getCameraSetting = (id: number) => Get(`/camerasetting/info/${id}`)

/** 更新区域视频摄像机配置信息 */
export const updateCameraSettingByArea = (data: any) => PostJson('/camerasetting/update', data)

/** 增加区域视频摄像机配置信息 */
export const addCameraSettingByArea = (data: any) => PostJson('/camerasetting/save', data)